import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-27
 * Time: 18:44
 */
public class Test {
    public static void main(String[] args) {
        String s1 = "adbsbf";
        for (int i = 0; i < s1.length(); i++) {
            char ch1 = s1.charAt(i);
            System.out.println(ch1);
        }
        char[] array = s1.toCharArray();
        System.out.println(Arrays.toString(array));
    }
    public static void main2(String[] args) {
        String s1 ="abcd";
        StringBuffer stringBuffer = new StringBuffer(s1);
        stringBuffer.append("abd");
        String s2 = stringBuffer.toString();
        System.out.println(s2);
        System.out.println(stringBuffer.reverse());
    }
    public static void main1(String[] args) {
        String name = "abcdff&whd=kds";
        String[] s1 = name.split("&|=");
        for (String x:s1) {
            System.out.println(x);
        }
        String s2 = "sjd.dfgdf";
        String[] s3 = s2.split("//.");
        for (String x: s3
             ) {
            System.out.println(x);
        }
    }
}
